from celery_tasks.celery import app
from .ronglian_sms import RongLianYunSms


@app.task(name='ronglianyun_sms')
def ronglianyun_sms_send(phone, datas):
    '''
    容联云通信发送短信
    :param mobiles:
    :param datas:
    :return:
    '''
    rly = RongLianYunSms()
    a = rly.send_sms(phone, datas)
    return a
